package com.dl.study.module.user.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: user
 * @Date: 2021/8/30 16:40
 * @Description:
 */
//,fallbackFactory = FeignServiceFallBack.class
@FeignClient(name = "BUSINESS-SERVICE")
@Component
public interface ProductService {

    @GetMapping("/get/{id}")
    String products(@PathVariable("id") Integer id);

//    @PostMapping("/user/add/")
//    ResponseDTO<Object> add(@RequestBody UserQueryListDto userQueryListDto);
}
